Repository navigation
Clarify --include-module-folders and document SBOM scans - #463
Conversation
The help text said "Enabling including module folders like node_modules", which doesn't say what a scan gains. The flag removes node_modules, bower_components and jspm_packages from the directories manifest discovery skips. Every package.json under them is then uploaded as its own project, and Socket resolves the dependencies each one declares, devDependencies included. The installed packages themselves are never recorded, so the flag can add hundreds of packages a project never installs and still misses a package that a postinstall script put in node_modules without a lockfile entry. Say that in the help text and the CLI reference, and add a troubleshooting entry for packages installed outside the lockfile: a CycloneDX SBOM of the installed tree saved in the scan root is picked up by manifest discovery and uploaded with the other manifests. No behavior change. Bumps the version to 2.13.1 for the version check.
--include-module-folders does
The flag adds every supported manifest under node_modules, bower_components and jspm_packages, at any depth, not only each package's top-level package.json. Those files are added to the same scan; no separate project is created. Say that in the reference, troubleshooting entry and changelog. Cut the help text to two sentences and point to the troubleshooting section on GitHub, since pip installs don't include the docs folder.
…olders-behavior # Conflicts: # CHANGELOG.md
2.13.2 was released from main, so this change needs the next patch version.
Document how to include a generated SBOM in pull request comparisons. Test the manifest list submitted by the CLI under different directory settings. Group the documentation with the pending 2.14.0 release.
--include-module-folders does--include-module-folders and document SBOM scans
|
bugbot run |
PR SummaryLow Risk Overview
A new parametrized unit test drives Reviewed by Cursor Bugbot for commit e1a8356. Configure here. |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit e1a8356. Configure here.
# Conflicts: # CHANGELOG.md # docs/ci-cd.md
--include-module-folderslets Socket discover manifests inside installed module directories. Those manifests describe declared dependencies. To inventory packages present on disk, the troubleshooting guide shows how to generate a CycloneDX SBOM and include it in default-branch and PR scans.The CLI test checks the submitted manifest list with default settings, with
--include-module-folders, with the equivalent--include-dirslist, and with an explicit path exclusion. The help text and docs change only how the behavior is described. The changelog places the update under 2.14.0.Testing
postinstallscript that was absent from its lockfile.Release
Ships in 2.14.0. Merge order: #461 → #462 → #460 → #464 → #465 → #463. Merged together in that order on
mainat #459, the six pass the full test suite andruff check.mainrequires branches to be up to date, so update each PR frommainafter the previous merge.CHANGELOG.mdwill conflict each time: combine the bullets under the existing## 2.14.0subsections (Upgrade notes, Changed, Fixed, Documentation) by hand rather than taking either side.This is 6 of 6. Merge it last: it replaces the README's 2.13.0 upgrade guide with one short "Upgrading from 2.12 or earlier" section covering 2.13 and 2.14, which links to workflows and docs added in #460. If a PR is pulled from 2.14.0, trim its part of that section before merging. Updating from
mainconflicts indocs/ci-cd.mdas well asCHANGELOG.md: keepmain's paragraph after "Findings block only when a diff comparison runs" and change only the link on its last line to[upgrade notes](../README.md#upgrading-from-212-or-earlier).Public Changelog
Clarified how
--include-module-foldersdiscovers dependency manifests and documented how to scan packages installed outside the lockfile with a CycloneDX SBOM.Fixes: CE-516
Refs: ASK-639